package com.quectel.core.module.partyeducationtraining.dto;

import com.quectel.core.module.partybuilding.dto.PartyOrganizationDto;
import com.quectel.core.module.partybuilding.dto.PartyPersonDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ryan
 * @email ryan.ran@quectel.com
 * @date 2022/05/07 16:40
 */
@Data
@Schema
public class TrainingCommentDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 党组织id
     */
    @Schema(description = "党组织id")
    private Long partyId;

    /**
     * 课程id
     */
    @Schema(description = "课程id")
    private Long trainingId;

    /**
     * 评论人员id
     */
    @Schema(description = "评论人员id")
    private Long partyPersonId;

    /**
     * 评分
     */
    @Schema(description = "评分")
    private BigDecimal score;

    /**
     * 评价内容
     */
    @Schema(description = "评价内容")
    private String content;

    /**
     * 评论时间
     */
    @Schema(description = "评论时间")
    private Date createTime;

    /************非数据库字段 start ************/
    /**
     * 党组织信息
     */
    @Schema(description = "党组织信息")
    private PartyOrganizationDto party;

    /**
     * 课程
     */
    @Schema(description = "课程")
    private TrainingDto training;

    /**
     * 党员
     */
    @Schema(description = "党员")
    private PartyPersonDto partyPerson;
    /************非数据库字段 end **************/
}
